//
//  StwxDetailViewModel.h
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/10/23.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#import "SUTableViewModel2.h"

#import "ArticleInfoData.h"
#import "ArticleListData.h"

#import "StwxDetailItemViewModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface StwxDetailViewModel : SUTableViewModel2

//@property (nonatomic, readwrite, strong) RACCommand* changeTFCmd;
@property (nonatomic, readonly, strong) RACCommand* requestDataCmd;
@property (nonatomic, readonly, strong) RACCommand* requestCollectCmd;
@property (nonatomic, readonly, strong) RACCommand* requestGoodCmd;
@property (nonatomic, readonly, strong) RACCommand* checkDownloadCmd;
@property (nonatomic, readonly, strong) RACCommand* downloadCmd;
@property (nonatomic, readonly, strong) RACCommand* fileCmd;

@property (nonatomic, readonly, strong) RACCommand* selectCmd;

@property (nonatomic, readwrite, assign) CGFloat cellHeight;
@property (nonatomic, readwrite, assign) NSInteger tag;
@property (nonatomic, readwrite, assign) NSInteger tabIndex;

@property (nonatomic, readwrite, assign) NSInteger downloadNeedCoin;
@property (nonatomic, readwrite, assign) BOOL isHaveDownload;
@property (nonatomic, readwrite, assign) BOOL isHaveDetailCtrl;
@property (nonatomic, readwrite, assign) BOOL isCollect;
@property (nonatomic, readwrite, assign) BOOL isPraise;

@property (nonatomic, readwrite, copy) NSString* adImgUrl;
@property (nonatomic, readwrite, copy) NSString* adUrl;

@property (nonatomic, readwrite, copy) NSString* articleID;

@property (nonatomic, readonly, strong) StwxDetailItemViewModel* detailItemVM;

- (void)initStwxDetail:(StwxDetailItemViewModel*)ivm;

@end

NS_ASSUME_NONNULL_END
